import { HashRouter, BrowserRouter } from "react-router-dom";
import AuthRouter from './permission.tsx'
import Router from "./routes/index";

export const App = () => {
    let name = import.meta.env.VITE_API_PUBLIC_PATH
  return (
    <BrowserRouter basename={name}>
      <AuthRouter>
      <Router />
      </AuthRouter>
    </BrowserRouter>
  );
};

export default App;
